package com.epam.kozich.dao;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.epam.kozich.model.Book;

public class BookDAOImpl extends HibernateDaoSupport implements BookDAO {

	@Override
	public void addBook(Book book){
		getHibernateTemplate().save(book);
	}

	@Override
	public void updateBook(Long id, Book book){
		getHibernateTemplate().update(book);

	}

	@Override
	public void deleteBook(Book book){
		getHibernateTemplate().delete(book);

	}

}
